<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<load href="__PUBLIC__/css/bootstrap.min.css" />
<load href="__PUBLIC__/css/main.css" />
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<load href="__PUBLIC__/js/main.js" />
	<style type="text/css">
		.main-frame{border: none;}
		ul.ul{display:block; clear:both; border:solid 1px #eee; border-radius:5px; width: 100%; height:auto; list-style:none; margin:0px; padding:0px; overflow:auto; overflow-x:hidden;}
		ul.ul span{display: block; padding: 10px; overflow: hidden;}
		ul.ul li{clear:none; float:none; padding:0px; margin:0px; display:block; float:left; width:150px; overflow:hidden; height:24px; line-height:24px; margin-right:6px;}
		div.pushhead{border-bottom:solid 1px #eee; clear:both; margin-bottom:0px; height: 36px; line-height: 36px; background-color: #383e4c; padding: 0px 12px; color: #fff;}
		input.tjiao{display: block; clear: both; width: 150px; margin: 0px auto; margin-top: 12px; background-color: #383e4c; list-style: none; color: #fff; font-size: 14px; border: none; height: 32px; line-height: 28px; border-radius: 3px;}
		.addobject{margin-top: 24px;}
		.addobjects{width: 68%; min-width: 800px; height: 100%; overflow: auto; position: fixed; right: 12px; top: 24px;}
	</style>
</head>

<body>
<!-- 图片资源开始 -->
<div class="floatBackground" id="floatBackground" style="display: none;">
	<div class="bounced">
		<label class="closeImgResurces">X</label>
		<iframe id="imgResourcesiframe" src="{:rtrim(U('Upload/index'),'.html')}" width="750" height="465" frameborder="0" scrolling="auto"></iframe>
	</div>
</div>
<div class="main-frame">
	<div class="position">华人码 > 增加管理员</div>
	<form name="form1" id="typeform1" action="{:U('User/add')}" method="post" class="form-inline">
	<div class="addobject">
		<div class="obj-form" style="width: 30%; min-width: 450px; overflow:hidden; margin-right: 20px;">
				<ul>
					<li>
						<label class="fl tle">用户名：</label>
						<span class="fl cnt"><input name="username" class="form-control" placeholder="用户名"><em>*</em></span>
					</li>
					<li>
						<label class="fl tle">密 码：</label>
						<span class="fl cnt"><input type="password" name="userpass" class="form-control" placeholder="密码"><em>*</em></span>
					</li>
					<li>
						<label class="fl tle">再输密码：</label>
						<span class="fl cnt"><input type="password" name="userpass1" class="form-control" placeholder="再输一次密码"><em>*</em></span>
					</li>
					<li>
						<label class="fl tle">用户别名：</label>
						<span class="fl cnt"><input name="alias" class="txtlength200" placeholder="用户别名"><em>*</em></span>
					</li>
					<li>
						<label class="fl tle">是否/管理员：</label>
						<span class="fl cnt">
							<input class="radio" type="radio" name="type" value="1"> 是的
							&nbsp;&nbsp;&nbsp;&nbsp;<input class="radio" type="radio" name="type" value="0" checked="checked"> 不是
						</span>
					</li>
					<li>
						<label class="fl tle">状态：</label>
						<span class="fl cnt">
							<input class="radio" type="radio" name="state" value="1" checked="checked"> 开启
							&nbsp;&nbsp;&nbsp;&nbsp;<input class="radio" type="radio" name="state" value="0"> 关闭
						</span>
					</li>
					<li>
						<label class="fl tle">账户类型：</label>
						<span class="fl cnt">
							<volist name="account_type" id="account">
								<input type="checkbox" value="{$account['account_value']}" name="account_type[]" class="extendedattr"> {$account['account_name']}
							</volist>
						</span>
					</li>

					<li class="oline" style="width:100%;"><span class="dividerline"></span></li>

					<li><label class="fl tle" style="font-weight: bold; font-size: 16px;">审核权限</label></li>
					<li>
						<label class="fl tle">码审核：</label>
						<span class="fl cnt">
							<input class="radio" type="radio" name="audit_ma" value="1"> 不需要
							<input class="radio" type="radio" name="audit_ma" value="0" checked="checked"> 需要
						</span>
					</li>
					<li>
						<label class="fl tle">资源审核：</label>
						<span class="fl cnt">
							<input class="radio" type="radio" name="audit_r" value="1"> 不需要
							<input class="radio" type="radio" name="audit_r" value="0" checked="checked"> 需要
						</span>
					</li>

					<li class="oline" style="width:100%;"><span class="dividerline"></span></li>
					<li><label class="fl tle" style="font-weight: bold; font-size: 16px;">企业信息</label></li>
					<li>
						<label class="fl tle">企业名称：</label>
						<span class="fl cnt"><input name="epname" class="txtlength200" placeholder="企业名称"></span>
					</li>
					<li>
						<label class="fl tle">企业网址：</label>
						<span class="fl cnt"><input name="eplink" class="txtlength200" placeholder="如：http://www.hrtv.cn/"></span>
					</li>
					<li>
						<label class="fl tle">企业LOGO：</label>
						<span class="fl cnt"><input name="logoimg" id="thumbimg1" class="form-control" placeholder="企业LOGO" style="width: 300px;"><a class="browse" f='thumbimg1'>浏览···</a></span>
					</li>
					<li>
						<label class="fl tle">企业公众号：</label>
						<span class="fl cnt"><input name="codeimg" id="thumbimg2" class="form-control" placeholder="企业公众号二维码图片" style="width: 300px;"><a class="browse" f='thumbimg2'>浏览···</a></span>
					</li>

					<li class="submit">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><input type="submit" value="增加" class="submitbtn" /></span>
					</li>
				</ul>
		</div>
		<div class="addobject" style="width: 68%; min-width: 800px; overflow: hidden; margin-top: 14px;">
			<!--勾选-->
			<ul class="ul">
				<div class="pushhead">栏目管理权限</div>
					<span class="span">
					<volist name='manageslist' id='v'>
						<li class="parli"><input type="checkbox" value="{$v['id']}" name="ad_push_ma[]" class="extendedattr"> {$v['manage_name']}</li>
						<ul class="ul" style="border: none; margin: 10px 0px; margin-left: 20px;">
							<volist name="v['submenu']" id='v1'>
								<li style="margin-left: 15px;"><input type="checkbox" value="{$v1['id']}" name="ad_push_ma[]" class="extendedattr"> {$v1['manage_name']}</li>
							</volist>
						</ul>
					</volist>
				</span>
			</ul>
			<ul class="ul" style="margin-top: 12px; margin-bottom: 60px;">
				<div class="pushhead">模板管理权限</div>
				<span class="span">
					<volist name="tpl" id="v">
						<li class="parli"><input type="checkbox" value="{$v['key']}" name="select_tpl[]" class="extendedattr"> {$v['name']}</li>
					</volist>
				</span>
			</ul>
		</div>
	</div>
	</form>

	<script type="text/javascript">
		$(function () {

		});
	</script>

</div>
</body>
</html>
